FROM nginx:1.19

MAINTAINER dracoqiu 1776658191@qq.com

# 设置时区
ENV TZ=Asia/Shanghai

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
	# 将默认的debian源替换为阿里源
    && cp /etc/apt/sources.list /etc/apt/sources.list.bak \
    #
    # 清空文件
    && echo " " > /etc/apt/sources.list \
    && echo "deb http://mirrors.aliyun.com/debian buster main" >> /etc/apt/sources.list \
    && echo "deb http://mirrors.aliyun.com/debian buster-updates main" >> /etc/apt/sources.list \
    #
    # 更新安装依赖包
    && apt-get clean && apt-get update \
    #
    # 安装vim文本编辑器
	&& apt-get install vim -y \
	#
	# 安装wget下载工具
	&& apt-get install wget -y \
	#
	# 安装网络管理工具
	&& apt-get install net-tools -y \
	#
	# 安装ping
	&& apt-get install iputils-ping -y \
	#
	# 安装telnet
	&& apt-get install telnet -y \
	#
	# 安装进程管理命令ps, top, vmstat, w, kill, free, slabtop, and skill
	&& apt-get install procps -y

# EXPOSE 80

# CMD ["nginx", "-g", "daemon off;"]